<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"/>
    <meta name="keywords" content=""/>
    <meta name="description" content=""/>
    <link rel="stylesheet" href="/static/index/index/css/amazeui.min.css">
    <link rel="stylesheet" href="/static/index/index/css/wap.css">
    <title>活动内容页</title>
</head>
<body style="background:#ececec">
<div class="pet_mian">
    <div class="pet_head">
        <header data-am-widget="header"
                class="am-header am-header-default pet_head_block">
            <div class="am-header-left am-header-nav ">
                <a href="{:url('index/Activity/list')}" class="iconfont pet_head_jt_ico">&#xe601;</a>
            </div>


            <div class="am-header-right am-header-nav">
                <a href="{:url('index/index/index')}" class="iconfont pet_head_gd_ico">&#xe600;</a>
            </div>
        </header>
    </div>


    <div class="pet_more_list">
        <div class="pet_more_list_block">
            <div class="iconfont pet_more_close">×</div>
            <div class="pet_more_list_block">
                <div class="pet_more_list_block_name">
                    <div class="pet_more_list_block_name_title">阅读 Read</div>
                    <a class="pet_more_list_block_line">
                        <i class="iconfont pet_nav_xinxianshi pet_more_list_block_line_ico">&#xe601;</i>
                        <div class="pet_more_list_block_line_font">新鲜事</div>
                    </a>
                    <a class="pet_more_list_block_line">
                        <i class="iconfont pet_nav_zhangzhishi pet_more_list_block_line_ico">&#xe606;</i>
                        <div class="pet_more_list_block_line_font">涨知识</div>
                    </a>
                    <a class="pet_more_list_block_line">
                        <i class="iconfont pet_nav_kantuya pet_more_list_block_line_ico">&#xe607;</i>
                        <div class="pet_more_list_block_line_font">看涂鸦</div>
                    </a>
                    <a class="pet_more_list_block_line">
                        <i class="iconfont pet_nav_mengzhuanti pet_more_list_block_line_ico">&#xe603;</i>
                        <div class="pet_more_list_block_line_font">萌专题</div>
                    </a>
                    <a class="pet_more_list_block_line">
                        <i class="iconfont pet_nav_bk pet_more_list_block_line_ico">&#xe611;</i>
                        <div class="pet_more_list_block_line_font">百科</div>
                    </a>
                    <a class="pet_more_list_block_line">
                        <i class="iconfont pet_nav_wd pet_more_list_block_line_ico">&#xe60c;</i>
                        <div class="pet_more_list_block_line_font">问答</div>
                    </a>
                    <div class="pet_more_list_block_name_title pet_more_list_block_line_height">服务 Service</div>
                    <a class="pet_more_list_block_line">
                        <i class="iconfont pet_nav_xinxianshi pet_more_list_block_line_ico">&#xe600;</i>
                        <div class="pet_more_list_block_line_font">美容</div>
                    </a>
                    <a class="pet_more_list_block_line">
                        <i class="iconfont pet_nav_zhangzhishi pet_more_list_block_line_ico">&#xe602;</i>
                        <div class="pet_more_list_block_line_font">医院</div>
                    </a>
                    <a class="pet_more_list_block_line">
                        <i class="iconfont pet_nav_kantuya pet_more_list_block_line_ico">&#xe604;</i>
                        <div class="pet_more_list_block_line_font">店铺</div>
                    </a>
                    <a class="pet_more_list_block_line">
                        <i class="iconfont pet_nav_sy pet_more_list_block_line_ico">&#xe610;</i>
                        <div class="pet_more_list_block_line_font">摄影</div>
                    </a>
                    <a class="pet_more_list_block_line">
                        <i class="iconfont pet_nav_xx pet_more_list_block_line_ico">&#xe612;</i>
                        <div class="pet_more_list_block_line_font">学校</div>
                    </a>
                    <a class="pet_more_list_block_line">
                        <i class="iconfont pet_nav_sz pet_more_list_block_line_ico">&#xe60f;</i>
                        <div class="pet_more_list_block_line_font">水族</div>
                    </a>
                    <a class="pet_more_list_block_line">
                        <i class="iconfont pet_nav_ms pet_more_list_block_line_ico">&#xe60e;</i>
                        <div class="pet_more_list_block_line_font">猫舍</div>
                    </a>
                    <a class="pet_more_list_block_line">
                        <i class="iconfont pet_nav_qs pet_more_list_block_line_ico">&#xe60b;</i>
                        <div class="pet_more_list_block_line_font">犬舍</div>
                    </a>
                    <a class="pet_more_list_block_line">
                        <i class="iconfont pet_nav_qt pet_more_list_block_line_ico">&#xe60d;</i>
                        <div class="pet_more_list_block_line_font">其它</div>
                    </a>
                </div>
            </div>

        </div>
    </div>
    

    <div class="pet_content">
        <div class="pet_content_block pet_hd_con">
            <div class="pet_hd_con_head"><img src="/static/index/img/z1.jpg" alt=""></div>
            <article data-am-widget="paragraph" class="am-paragraph am-paragraph-default pet_content_article"
                     data-am-paragraph="{ tableScrollable: true, pureview: true }">
                <h1 class="pet_article_title">{$data['name']}</h1>
                <div class="pet_article_user_time pet_hd_con_time"><i class="iconfont">&#xe617;</i>{$data['starttime']} ~ {$data['endtime']}
                </div>


                <div class="pet_hd_con_gp_list_nr">
                    <div class="pet_hd_con_gp_list_nr_title">活动内容</div>
                    <div class="pet_hd_con_gp_list_nr_tag">活动介绍</div>
                    <p>{$data['introduce']}</p>
                    <div class="pet_hd_con_gp_list_nr_tag">活动优惠总金额</div>
                    <p>{$data['total']}</p>
                    <p></p>
                    <div class="pet_hd_con_gp_list_nr_tag">学员报名优惠金额</div>
                        <p>{$data['concession']}</p>
                    <div class="pet_hd_con_gp_list_nr_tag">推荐人奖励金额</div>
                    <p>{$data['reward']}</p>
                </div>

            </article>
            <ul class="like_share_block">
                <li><a class="link_share_button wybm" href="{:url('index/Baoming/index',['id'=>$data['id']])}"><i
                        class="iconfont share_ico_link ">&#xe62f;</i>我要报名</a></li>
                <li><a class="link_share_button wyfx" href="{:url('index/Invitation/index',['id'=>$data['id']])}"><i class="iconfont share_ico_wx">&#xe630;</i>我要分享</a>
                </li>
                <!--<li><a class="link_share_button" href="###"><i class="iconfont share_ico_pyq">&#xe62e;</i>朋友圈</a></li>-->
            </ul>
        </div>
    </div>

    <div class="pet_article_footer_info">Copyright(c)2015 Amaze UI All Rights Reserved</div>
</div>
</div>
<script src="/static/index/js/jquery.min.js"></script>
<script src="/static/index/js/amazeui.min.js"></script>
<script>
    $(function () {

        // 动态计算新闻列表文字样式
        auto_resize();
        $(window).resize(function () {
            auto_resize();
        });
        $('.am-list-thumb img').load(function () {
            auto_resize();
        });
        $('.pet_article_like li:last-child').css('border', 'none');
        function auto_resize() {
            $('.pet_list_one_nr').height($('.pet_list_one_img').height());
            // alert($('.pet_list_one_nr').height());
        }

        $('.pet_article_user').on('click', function () {
            if ($('.pet_article_user_info_tab').hasClass('pet_article_user_info_tab_show')) {
                $('.pet_article_user_info_tab').removeClass('pet_article_user_info_tab_show').addClass('pet_article_user_info_tab_cloes');
            } else {
                $('.pet_article_user_info_tab').removeClass('pet_article_user_info_tab_cloes').addClass('pet_article_user_info_tab_show');
            }
        });

        $('.pet_head_gd_ico').on('click', function () {
            $('.pet_more_list').addClass('pet_more_list_show');
        });
        $('.pet_more_close').on('click', function () {
            $('.pet_more_list').removeClass('pet_more_list_show');
        });

        $('.wyfx').click(function () {
            var flag = 1;
            $.ajax({
                url: "{:url('index/Person/userinfo')}",
                type: 'get',
                async: false,
                success: function (data) {
                    if(!data){
                        alert('请先登录');
                        location="{:url('index/Login/login')}";
                        flag = 2;
                    }
                }
            });
            if(flag == 2){
                return false;
            }
        });
//        $('.wybm').click(function () {
//            var flag = 1;
//            $.ajax({
//                url: "{:url('index/Person/userinfo')}",
//                type: 'get',
//                async: false,
//                success: function (data) {
//                    if(!data){
//                        alert('请先登录');
//                        location="";
//                        flag = 2;
//                    }
//                }
//            });
//            if(flag == 2){
//                return false;
//            }
//        });

    });

</script>
</body>
</html>